#include <iostream>
#include <cmath>

using namespace std;

int main() {
    int a,b;
    cin >> a >> b;
    int n;
    int n2;
    cin >> n2;
    for(int i = 0 ; i <= n2 ; i ++){
        n = a / b;
        a = a % b * 10;
    }
    cout << n;
    return 0;
}